﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using YXQ.Dao;
using YXQ.IService;
using   YXQ.Dao.ViewModel;
namespace YXQ.Service 

{

  public class  MudleService : IMudleService

    {


     MudleDao dao=new MudleDao();


    #region IMudleService 成员

   public List<Y_Mudle> GetList(int startIndex, int maxRow, out int recordcount)
     {

       return dao.GetList(startIndex, maxRow,out recordcount);

     }


     #endregion


    #region IMudleService 成员

   public int Save(MudleModel obj)
     {

       return dao.Save(obj);

     }


     #endregion


   #region IMudleService 成员

   public MudleModel GetOneById(int id)
     {

        return dao.GetOneById(id);

     }


     #endregion

   #region IMudleService 成员
   public int DelById(int id)
     {

        return dao.DelById(id);

     }


     #endregion



   public List<MudleModel> GetListByPid(int pid)
   {
       return dao.GetListByPid(pid);
   }
    }

 }

